module.exports = (app) => {
  const { INTEGER, DATE } = app.Sequelize
  const VisitNum = app.model.define('VisitNum', {
    id: {
      type: INTEGER,
      primaryKey: true,
      autoIncrement: true,
      comment: '主键id'
    },
    visit_num: {
      type: INTEGER,
      allowNull: false,
      defaultValue: 0,
      comment: '访问量'
    },
    date: {
      type: DATE,
      allowNull: false,
      comment: '访问时间'
    },
    created_at: DATE,
    updated_at: DATE
  })
  return VisitNum
}
